package com.hxzy.mapper;

import com.hxzy.entity.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    //登录
    @Select("select * from user where username = #{username} and password = #{password}")
    User selectByNameAndPassword(User user);

    //注册
    @Select("insert into user(username, password) values( #{username}, #{password}) ")
    void addUser(User user);

    //退出

}

